package com.example.mybatisplusdemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.mybatisplusdemo.pojo.User;

import java.util.List;

/**
 * TODO
 *
 * @ClassName UserService
 * @Author xiaojiang
 * @Date 2021/10/25 下午 15:05
 */
public interface UserService {

    public List<User> getList();

    public int insertOne(User user);

    public int updateOne(User user);

    public int deleteOne(String id);

    public int deleteBatch(List<String> ids);

    public List<User> queryUserByName(String name);

    public List<User> queryUserLikeName(String name);

    public List<User> queryUserByNameNotNull();

    public List<User> queryUserByIds(List<String> ids);

    public List<User> queryUserOrderByAge();

    public List<User> queryUserInSql();

    public int updateUserNameById(String id, String name);

    public int updateUserBySql(String id, String name);

    public List<User> lambdaQueryUserByName(String name);

    public List<User> lambdaQueryUserLikeName(String name);

    public int lambdaUpdateUserNameById(String id, String name);

    public IPage<User> selectPageByName(long pageNo, long pageSize, String name);


}
